// Helpers/Settings.cs This file was automatically added when you installed the Settings Plugin. If you are not using a PCL then comment this file back in to use it.
using Plugin.Settings;
using Plugin.Settings.Abstractions;

namespace Moven.Helpers
{
  /// <summary>
  /// This is the Settings static class that can be used in your Core solution or in any
  /// of your client applications. All settings are laid out the same exact way with getters
  /// and setters. 
  /// </summary>
	public static class Settings
	{
	    private static ISettings AppSettings
	    {
	      get
	      {
	        return CrossSettings.Current;
	      }
	    }

	    const string PhoneNoKey = "PhoneNo", LongPressToggleCheckTipKey = "LongPressToggleCheckTip";
		static readonly string PhoneNoKeyDefault = string.Empty;

	    public static string PhoneNo
	    {
	      	get
	      	{
	        	return AppSettings.GetValueOrDefault(PhoneNoKey, PhoneNoKeyDefault);
	      	}
	      	set
	      	{
	        	AppSettings.AddOrUpdateValue(PhoneNoKey, value);
	      	}
	    }

		public static bool ShowLongPressToggleCheckTip
		{
			get { return AppSettings.GetValueOrDefault(LongPressToggleCheckTipKey, true); }
			set
			{
				AppSettings.AddOrUpdateValue(LongPressToggleCheckTipKey, value);
			}
		}
	}
}